/**
 * 
 */
package com.pmsco.pms.services.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.pmsco.pms.core.dao.PmsSysInformationDao;
import com.pmsco.pms.core.domain.PmsSysInformation;
import com.pmsco.pms.services.interfaces.PmsSysInformationService;

/**
 * @author Long Tran
 *
 */
public class PmsSysInformationServiceImpl implements PmsSysInformationService {
	private static final Logger logger = LoggerFactory.getLogger(PmsSysInformationServiceImpl.class);
	
	private static PmsSysInformationDao pmsSysInformationDao;
	
	public PmsSysInformation loadPmsSysInformation() {
		return pmsSysInformationDao.getPmsSysInformation();
	}

	public void saveOrUpdatePmsSysInformation(PmsSysInformation pmsSysInformation) {
		logger.info("Start saveOrUpdatePmsSysInformation");
		pmsSysInformationDao.saveOrUpdatePmsSysInformation(pmsSysInformation);
		logger.info("End saveOrUpdatePmsSysInformation");
	}

	/**
	 * @param pmsSysInformationDao the pmsSysInformationDao to set
	 */
	public void setPmsSysInformationDao(PmsSysInformationDao pmsSysInformationDao) {
		logger.info("Start setPmsSysInformationDao");
		logger.debug("PMS SysInformation Dao: " + pmsSysInformationDao);
		this.pmsSysInformationDao = pmsSysInformationDao;
		logger.info("End setPmsSysInformationDao");
	}
	
}
